package jee.boot.common.dao;

import jee.boot.common.basic.TreeDao;
import jee.boot.entity.system.Dictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 字典DAO接口
 *
 * @author zhilei.wang
 */
@Mapper
public interface DictionaryDao extends TreeDao<Dictionary> {
    @Select("SELECT  type,max(description) as description   FROM ${tableName}  GROUP BY type ORDER BY type")
    List<Dictionary> findTypeList(Dictionary dictionary);

}
